<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏样式</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        a{
            text-decoration: none;
                 }
        /*导航栏在上*/
      /*  div{
            margin-left: 20px;
            padding: 15px;
            font-size: 30px;
            background: #7abaff;
            width: 100px;
             height: 30px;
            !*float: left;*!
           float: right;
            text-align: center;
        }
        a{
            text-decoration: none;
        }
        .dnone{
            !*float: left;*!
               !* float: right;*!
            margin-left:0px ;
            text-decoration: none;
            display: none;
        }
        div:hover {
            background: white;
            color: black;
        }
        div:hover .dnone,a{
            color: white;
            background: black;
            display: block;
        }
        div:active a{
            color: #ff7800;
        }
        div:active.dnone{
            background: white;
        }*/
        /*导航栏再左*/
      /*  ul{
            margin-top: 200px;
            list-style-type: none;
            float: left;
        }
        li{
            margin-left: 20px;
            float: left;
            width: 260px;
            height: 50px;
            font-size: 20px;
            background-color: #ff7800;
            margin-top: 5px;

        }
        a{
            text-decoration: none;
            font-size: 20px;
            color: black;
            width: 100%;
            height: 100%;
            text-align:center;
        }
        ol{
            display: none;
        }
        li a:hover{
            font-size: 22px;
            color: white;

        }
        li a:active{
            background: #ff7800;
            color: red;
        }

        div {
            width: 270px;
        }*/
        /*导航栏在右*/
     /*   ul{
            margin-top: 200px;
            list-style-type: none;
            float: right;
        }
        li{
            margin-left: 20px;
            float: left;
            width: 260px;
            height: 50px;
            font-size: 20px;
            background-color: #ff0000;
            margin-top: 5px;
            text-align: center;

        }
        a{

            font-size: 20px;
            color: black;
            width: 100%;
            height: 100%;
            text-align:center;
        }
        ol{
            display: none;
        }
        li a:hover{
            font-size: 22px;
            color: white;

        }
        li a:active {
            color: gainsboro;
        }
        div {
            margin-left: 80%;
            width: 270px;
        }*/
    </style>
</head>
<body>
<!--导航栏在上-->
<!--<div id="d1">你好
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
</div><div id="d2">你好
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
</div><div id="d3">你好
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
</div><div id="d4">你好
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
    <div class="dnone"><a href="">你好</a></div>
</div>-->
<!--导航栏在左-->
<!--<div>
    <ul>
        <li><a href="#">蜀道之难 难于上青天！</a></li>
        <li><a href="#">蚕丛及鱼凫 开国何茫然！</a></li>
        <li><a href="#">尔来四万八千岁</a></li>
        <li><a href="#">西当太白有鸟道</a></li>
        <li><a href="#">地崩山摧壮士死</a></li>
    </ul>
</div>-->
<!--导航栏在右-->
<!--<div>
    <ul>
        <li><a href="#">不与秦塞通人烟</a></li>
        <li><a href="#">可以横绝峨眉巅</a></li>
        <li><a href="#">然后天梯石栈相钩连</a></li>
        <li><a href="#">下有冲波逆折之回川</a></li>
        <li><a href="#">不与秦塞通人烟</a></li>
    </ul>
</div>-->
</body>
</html>